import axios from '@/libs/api.request'
const prefix = '/oms/merchant/payment/provider'
// 服务商列表
export const getServiceLists = data => axios.request({
  url: `${prefix}/query/page`,
  method: 'post',
  data
})
// 服务商下拉列表
export const getServiceSelects = data => axios.request({
  url: `${prefix}/query/list`,
  method: 'post',
  data
})
// 服务商详情
export const getServiceDetail = data => axios.request({
  url: `${prefix}/get`,
  method: 'post',
  data
})
// 服务商新增
export const addService = data => axios.request({
  url: `${prefix}/save`,
  method: 'post',
  data
})
// 服务商删除
export const deleteService = data => axios.request({
  url: `${prefix}/delete`,
  method: 'post',
  data
})
// 服务商更新
export const updateService = data => axios.request({
  url: `${prefix}/update`,
  method: 'post',
  data
})
// 验证能否编辑
export const updateServiceVerify = data => axios.request({
  url: `${prefix}/update/verify`,
  method: 'post',
  data
})
